<p id="nav">
<?php
switch ($_GET['action']) {
    case 'register':
        $nav[] = "<a href='/index.php'>" . _e('Log In') . "</a>";
        $nav[] = "<a href='/index.php?action=lostpassword' title='" . _e('Password lost and found') . "'>" . _e('Lost your password?') . "</a>";
        break;
    case 'lostpassword':
        $nav[] = "<a href='/index.php'>" . _e('Log In') . "</a>";
        $nav[] = "<a href='/index.php?action=register' title='" . _e('Register new account') . "'>" . _e('Register') . "</a>";
        break;
    case 'logout':
        $nav[] = "<a href='/index.php'>" . _e('Log In') . "</a>";
        $nav[] = "<a href='/index.php?action=lostpassword' title='" . _e('Password lost and found') . "'>" . _e('Lost your password?') . "</a>";
        break;
    default:
        $nav[] = "<a href='/index.php?action=register' title='" . _e('Register new account') . "'>" . _e('Register') . "</a>";
        $nav[] = "<a href='/index.php?action=lostpassword' title='" . _e('Password lost and found') . "'>" . _e('Lost your password?') . "</a>";
        break;
}
echo implode(" | ", $nav);

?>
</p>